<html>
    <body>
        <script>!(function () {
            let e = document.createElement("script"),
              t = document.head || document.getElementsByTagName("head")[0];
            (e.src =
              "./js/index.js"),
              // Replace 1.x.x with the version that you want
              (e.async = !0),
              (e.onload = () => {
                window.WebChat.default(
                  {
                    customData: { language: "zh" },
                    socketUrl: "http://localhost:5005",
                    // add other props here
					      title: '问答',
				  subtitle: '',
				  inputTextFieldHint: '输入一条消息...',
				  connectingText: '等待服务器...',
				  hideWhenNotConnected: false,
				  fullScreenMode: false,
				  profileAvatar: './assets/img_avatar.png',
                  },
                  null
                );
              }),
              t.insertBefore(e, t.firstChild);
          })();
          </script>
    </body>
</html>